package com.itheima.day05.myInteger.test6;

public class Test {
    public static void main(String[] args) {
        String str = "  91 27 156 4 6 38 50 ";
        str = str.trim();

        String[] arrStr = str.split(" ");

        int[] arr = new int[arrStr.length];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = Integer.parseInt(arrStr[i]);
        }

        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
